﻿using System;

using Fuse8.DomainFramework.Domain;

namespace Fuse8.DomainFramework.CacheService
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
    /// <typeparam name="TKey"></typeparam>
    public interface ICacheDependency<TEntity, TKey>
        where TEntity : class, IEntityObject<TKey>, new()
        where TKey : IComparable<TKey>, IEquatable<TKey>
    {
        /// <summary>
        /// 
        /// </summary>
        Action<TEntity> ClearByEntityAction { get; }

        /// <summary>
        /// 
        /// </summary>
        Action<TKey> ClearByKeyAction { get; }
    }
}
